{# SPDX-FileCopyrightText: © 2015 Siemens AG

   SPDX-License-Identifier: FSFAP
#}
SPDXVersion: SPDX-2.3
DataLicense: {{ dataLicense.id|replace({' ': '-'}) }}

##-------------------------
## Document Information
##-------------------------

DocumentNamespace: {{ uri }}
DocumentName: {{ documentName }}
SPDXID: SPDXRef-DOCUMENT

##-------------------------
## Creation Information
##-------------------------

{% if toolVersion is not empty %}
Creator: Tool: {{ toolVersion }}
{% endif %}
{% if userName is not empty %}
Creator: Person: {{ userName }}
{% endif %}
{% if organization is not empty %}
Creator: Organization: {{ organisation }}
{% endif %}
CreatorComment: <text>
This document was created using license information and a generator from Fossology.
</text>
Created: {{ 'now'|date('Y-m-d\\TH:i:s\\Z', 'UTC') }}
LicenseListVersion: 3.19

##-------------------------
## Package Information
##-------------------------

{{ packageNodes }}

##-------------------------
## License Information
##-------------------------

{% for licenseData in licenseTexts %}{% if licenseData.id starts with 'LicenseRef-' %}
LicenseID: {{ licenseData.id|replace({' ': '-'}) }}
LicenseName: {{ licenseData.name }}
ExtractedText: <text> {{ licenseData.text|replace({'<text>':'&lt;text&gt;','</text>':'&lt;/text&gt;'})
                                         |replace({'\f':''}) }} </text>

{% endif %}{% endfor %}
